using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Flie_Purview - 文件权限 - 对象继承类
    /// </summary>
    [MetadataType(typeof(FliePurviewValidaTion))]
    public class FilePurview : IFliePurview<FilePurview>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class FliePurviewValidaTion
       {

     

        /// <summary>
        /// 文件权限信息
        /// </summary>
        [Display(Name ="文件权限信息")]
        [Required]
        [StringLength(100)]
        public String FliePwId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 文件Id
        /// </summary>
        [Display(Name ="文件Id")]
        [Required]
        [StringLength(36)]
        public String FileId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 获取权限的团队或者个人Id
        /// </summary>
        [Display(Name ="获取权限的团队或者个人Id")]
        [Required]
        [StringLength(36)]
        public String ModelsId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 类别
        /// </summary>
        [Display(Name ="类别")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.FliePurview.Type Type
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 授权级别
        /// </summary>
        [Display(Name ="授权级别")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.FliePurview.PurviewLevel PurviewLevel
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
